package evaluateTotalResult

import (
	dbModel "ZHONGYIHANGYAN/bean/dbModel"
	"ZHONGYIHANGYAN/mysql"
)

type EvaluateTotalResultManage struct {
	mysql.DataBase
}

var defaultEvaluateTotalResultManage = &EvaluateTotalResultManage{}

func Manage() *EvaluateTotalResultManage {
	return defaultEvaluateTotalResultManage
}

// 初始化指标表
func InitTable(DB *mysql.MysqlGorm) {
	defaultEvaluateTotalResultManage.DataBase = DB
	defaultEvaluateTotalResultManage.autoMigrate()
}

func (m *EvaluateTotalResultManage) autoMigrate() {
	m.DataBase.AutoMigrate(&dbModel.EvaluateTotalResult{})
}
